package com.test.demo.main.adapter;


import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.test.demo.R;
import com.test.demo.bean.LikeBean;
import com.test.demo.bean.RepostBean;

import java.util.ArrayList;

public class RepostAdapter extends BaseQuickAdapter<RepostBean, BaseViewHolder> {

    ArrayList<RepostBean> datas = new ArrayList<>();

    public RepostAdapter(ArrayList<RepostBean> data) {
        super(R.layout.adapter_retweet_item, data);
    }


    public void setData(ArrayList<RepostBean> datas) {
        this.datas = datas;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, RepostBean repostBean) {
        baseViewHolder.setText(R.id.profile_name, repostBean.name);
        baseViewHolder.setText(R.id.tv_time_ago, repostBean.time);
        baseViewHolder.setText(R.id.tv_content, repostBean.content);
        baseViewHolder.setImageResource(R.id.profile_circle, repostBean.circleId);
    }
}
